package com.china08.yxyapi.entity.db.sws;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 
 * @author
 *
 */
@Entity
@Table(name = "SWS_SETTING", catalog = "yxy_sws")
public class SwsSetting extends BaseEntityNoId {

    private static final long serialVersionUID = 2360926945920273949L;

    /** 网站logo展示样式 */
    public enum LogoStyle {// 网站名称, 网站logo, 校徽+名称
        WEB_NAME, WEB_LOGO, BADGE_NAME
    }

    /** 学校ID */
    @Id
    @Column(name = "school_id", length = 32, nullable = false)
    private String schoolId;

    /** 学校名称，此名称可以和school表中的名称不相同 */
    @Column(name = "school_name")
    private String schoolName;

    /**
     * 学校名称字体
     */
    @Column(name = "font_family")
    private String fontFamily;

    /**
     * 学校名称字号
     */
    @Column(name = "font_size", columnDefinition = "int(11) comment '学校名称字号'")
    private Integer fontSize;

    /**
     * 学校名称颜色
     */
    @Column(name = "font_color", columnDefinition = "varchar(32) comment '学校名称颜色' ")
    private String fontColor;

    /** 学校LOGO */
    @Column(name = "school_logo")
    private String schoolLogo;

    /**
     * 学校校徽
     */
    @Column(name = "school_badge")
    private String schoolBadge;

    /** 网站logo设置 */
    @Enumerated(EnumType.STRING)
    @Column(name = "logo_setting", columnDefinition = "enum('WEB_LOGO','WEB_NAME','BADGE_NAME')", nullable = false)
    private LogoStyle logoSetting = LogoStyle.WEB_NAME;

    /** 关键字 */
    @Column(name = "keywords", length = Integer.MAX_VALUE)
    private String keywords;

    /** 描述 */
    @Column(name = "seo_description", length = Integer.MAX_VALUE)
    private String seoDescription;

    /** 描述 */
    @Column(name = "description", length = Integer.MAX_VALUE)
    private String description;

    /** 版权:自定义 */
    @Column(name = "copyright", length = 255)
    private String copyright;

    /**
     * 联系电话
     */
    @Column
    private String telephone;

    /**
     * 联系地址
     */
    @Column
    private String address;

    /**
     * 当前使用的模版id
     */
    @Column(name = "skin_templ", length = 32)
    private String skinTempl;

    /**
     * 当前使用的主题
     */
    @Column(name = "skin_theme", length = 32)
    private String skinTheme;

    /**
     * 当前使用的配色
     */
    @Column(name = "skin_color", length = 32)
    private String skinColor;

    /** 首页广告图片:固定宽高 */
    @Column(name = "ad_img")
    private String adImg;

    /** 浮动广告:连接 */
    @Column(name = "float_ad_url")
    private String floatAdURL;

    /** 浮动广告:图片 */
    @Column(name = "float_ad_img")
    private String floatAdImg;

    /** 浮动广告:是否显示 */
    @Column(name = "float_ad_visable", columnDefinition = "tinyint(1) DEFAULT 0", nullable = false)
    private Boolean floatAdVisable = Boolean.FALSE;

    // getters and setters
    public String getCopyright() {
        return copyright;
    }

    public void setCopyright(String copyright) {
        this.copyright = copyright;
    }

    // getters and setters
    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getSchoolLogo() {
        return schoolLogo;
    }

    public void setSchoolLogo(String schoolLogo) {
        this.schoolLogo = schoolLogo;
    }

    public String getFloatAdURL() {
        return floatAdURL;
    }

    public void setFloatAdURL(String floatAdURL) {
        this.floatAdURL = floatAdURL;
    }

    public String getFloatAdImg() {
        return floatAdImg;
    }

    public void setFloatAdImg(String floatAdImg) {
        this.floatAdImg = floatAdImg;
    }

    public Boolean getFloatAdVisable() {
        return floatAdVisable;
    }

    public void setFloatAdVisable(Boolean floatAdVisable) {
        this.floatAdVisable = floatAdVisable;
    }

    public String getAdImg() {
        return adImg;
    }

    public void setAdImg(String adImg) {
        this.adImg = adImg;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getFontFamily() {
        return fontFamily;
    }

    public void setFontFamily(String fontFamily) {
        this.fontFamily = fontFamily;
    }

    public LogoStyle getLogoSetting() {
        return logoSetting;
    }

    public void setLogoSetting(LogoStyle logoSetting) {
        this.logoSetting = logoSetting;
    }

    public String getSkinTempl() {
        return skinTempl;
    }

    public void setSkinTempl(String skinTempl) {
        this.skinTempl = skinTempl;
    }

    public String getSkinTheme() {
        return skinTheme;
    }

    public void setSkinTheme(String skinTheme) {
        this.skinTheme = skinTheme;
    }

    public String getSkinColor() {
        return skinColor;
    }

    public void setSkinColor(String skinColor) {
        this.skinColor = skinColor;
    }

    public String getSeoDescription() {
        return seoDescription;
    }

    public void setSeoDescription(String seoDescription) {
        this.seoDescription = seoDescription;
    }

    public String getSchoolBadge() {
        return schoolBadge;
    }

    public void setSchoolBadge(String schoolBadge) {
        this.schoolBadge = schoolBadge;
    }

    public Integer getFontSize() {
        return fontSize;
    }

    public void setFontSize(Integer fontSize) {
        this.fontSize = fontSize;
    }

    public String getFontColor() {
        return fontColor;
    }

    public void setFontColor(String fontColor) {
        this.fontColor = fontColor;
    }

}
